const express = require('express');
const router = express.Router();

router.get('/forMarketingActivityReports', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        code: 'string',
        brandCode: 'string',
        dealerCode: 'string',
        theme: 'string',
        currency: 1,
        statDate: '2020-05-21T07:27:57.452Z',
        endDate: '2020-05-21T07:27:57.452Z',
        customerQTY: 1,
        amount: 1,
        details: [
            {
                id: '1',
                num: 1,
                item: 'string',
                amount: 'string',
                marketingActivityItemCategoryL1Id: 'string',
                marketingActivityItemCategoryL1Name: 'string',
                marketingActivityItemCategoryL2Id: 'string',
                marketingActivityItemCategoryL2Name: 'string'
            }
        ]
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 41,
        }
    });
});
router.get('/forMarketingActivityReports/simple', (req, res) => {
    const content = [];
    for(let i = 0; i < 10; i++)
        content.push({
            id: `2019${i}`,
            code: 'string',
            brandCode: 'string',
            dealerCode: 'string',
            theme: 'string',
            currency: 1,
            statDate: '2020-05-21T07:27:57.452Z',
            endDate: '2020-05-21T07:27:57.452Z',
            customerQTY: 1,
            amount: 1,
            details: [
                {
                    id: '1',
                    num: 1,
                    item: 'string',
                    amount: 'string',
                    marketingActivityItemCategoryL1Id: 'string',
                    marketingActivityItemCategoryL1Name: 'string',
                    marketingActivityItemCategoryL2Id: 'string',
                    marketingActivityItemCategoryL2Name: 'string'
                }
            ]
        });
    res.json({
        message: '',
        payload: {
            content
        }
    });
});
module.exports = router;
